package com.zimin.common.utils;

import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.util.Date;

/**
 * @author zimin
 * @since 2021/10/14 3:47 下午
 */
public class LocalDateTimeUtil extends cn.hutool.core.date.LocalDateTimeUtil {

    /**
     * 东八区
     */
    public static final int GMT_8 = 8;

    /**
     * <p>获取时间戳</p>
     *
     * @return java.lang.Long
     * @since 2022-06-20 21:24:34
     */
    public static Long getTimeStamp() {
        return LocalDateTime.now()
                .toInstant(ZoneOffset.ofHours(GMT_8))
                .toEpochMilli();
    }

    public static void main(String[] args) {
    }

}
